<?php

class index_view extends view {
	
	
	public function init(){
		$this->viola_ajax_support = true;
		$this->url_template = TEMPLATE.'index.html';
		$this->url_header = TEMPLATE.'header.html';
		$this->url_footer = TEMPLATE."footer.html";
		$this->css = CSS_DIR."bootstrap.min.css";
		$this->js = JS_DIR."bootstrap.min.js";
		$this->read_template();
		$this->sostituisci("TITLE", 'test');
		$this->sostituisci("FRASE", "Ciao Viola!!");
		$this->output();
	}
	
	function ciao(){
		$this->viola_ajax_support = true;
		$this->url_template = TEMPLATE.'index.html';
		$this->url_header = TEMPLATE.'header.html';
		$this->url_footer = TEMPLATE."footer.html";
		$this->css = CSS_DIR."bootstrap.min.css";
		$this->js = JS_DIR."bootstrap.min.js";
		$this->read_template();
		$this->sostituisci("TITLE", 'test');
		$fb = $this->system->helpers['facebook_helper'];
		$this->sostituisci("FRASE", '<a href="'.$fb->getLoginUrl().'">Login</a>');
		$this->output();
	}
	
	function francesca(){
		$this->viola_ajax_support = true;
		$this->url_template = TEMPLATE.'index.html';
		$this->url_header = TEMPLATE.'header.html';
		$this->url_footer = TEMPLATE."footer.html";
		$this->css = CSS_DIR."bootstrap.min.css";
		$this->js = JS_DIR."bootstrap.min.js";
		$this->read_template();
		$this->sostituisci("TITLE", 'test');
		$fb = $this->system->helpers['facebook_helper'];
		$this->sostituisci("FRASE", '<a href="'.$fb->getLoginUrl().'">Login</a>');
		$this->output();
	}
}